package com.zxy.questionnaireback.controller;


import com.zxy.questionnaireback.entity.User;
import com.zxy.questionnaireback.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zxy
 * @since 2021-11-09
 */
@RestController
@RequestMapping("/questionnaireback/user")
public class UserController {
    @Autowired
    private UserService userService;
    @GetMapping("list")
    public List<User> getUsers(){
        return userService.list();
    }
}

